// import interface.
#include <windows.h>
#include <stdio.h>
#include <assert.h>

int main(int argc, char* argv[]) {
	if (argc != 2) {
		printf("Uasge : %s 32 bit signed integer(-2147483648 ~ 2147483647).", argv[0]);
		return -1;
	}

	{
		int i;
		int j = 1;
		int k;
		i = atoi(argv[1]);

		for (k = 31; k >= 0; --k) {
			static char fmt[] = " ";
			if ((i & (j << k)) != 0) {
				printf("%d", 1);
			} else {
				printf("%d", 0);
			}

			switch (k)
			{
				case 30:
				case 29:
				case 28:
				case 16:
					{
						printf(fmt);
					}
					break;
			}
		}   
	}
	return 0;
}
